﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="LocalColor.aspx.cs" EnableViewState="false"
    Inherits="NJL.WebUsers.LocalColor" %>
<%@ Import Namespace="Royalsoft.Common" %>
<%@ Register Src="Controls/WUCHeader.ascx" TagName="WUCHeader" TagPrefix="uc1" %>
<%@ Register Src="Controls/WUCFooter.ascx" TagName="WUCFooter" TagPrefix="uc2" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head id="Head1" runat="server">
    <title>地方特色-农家乐网</title>
    <link rel="stylesheet" type="text/css" href="/Styles/base1.css" />
    <script type="text/javascript" language="javascript" src="/Scripts/jquery-1.4.1.min.js"></script>
    <script type="text/javascript" language="javascript" src="/Scripts/jquery.KinSlideshow-1.1.js"></script>
    <script type="text/javascript" language="javascript">
        function tab(div, css) {
            document.getElementById("hot").style.display = "none";
            document.getElementById("news").style.display = "none";
            document.getElementById("hotcss").className = "";
            document.getElementById("newscss").className = "";
            document.getElementById(css).className = "now";
            document.getElementById(div).style.display = "block";
        }
        function check() {
            var txtkeywords = document.getElementById("txtKeywords").value;
            txtkeywords = $.trim(txtkeywords);
            if (txtkeywords == "") {
                document.getElementById("txtKeywords").focus()
                return false;
            }
        }
    </script>
</head>
<body>
    <form id="form1" runat="server">
    <uc1:WUCHeader ID="WUCHeader1" runat="server" />
    <!--主要内容-->
    <div class="clearfix w1003" id="content">
        <div class="blank cleanFlex">
        </div>
        <!--位置-->
        <div class="place02">
            <p>
                您现在的位置是：<a href="/">首页</a>>><span>地方特色</span>
            </p>
        </div>
        <!--顶部推广-->
        <div class="blank cleanFlex">
        </div>
        <!--左侧-->
        <div class="w_730 f_left">
            <!--banner-->
            <div style="height: 240px; overflow: hidden;" class="box">
                <script type="text/javascript">
                    $(function () {
                        $("#KinSlideshow").KinSlideshow({ isHasTitleBar: false, isHasTitleFont: false, moveStyle: "up" });
                    })
                </script>
                <div id="KinSlideshow" style="visibility: hidden;">
                    <%
                        for (int i = 0; i < LIST_FLASH.Count; i++)
                        {
                    %>
                    <a href="<%=LIST_FLASH[i].LINK_TO_URL %>" title="<%=LIST_FLASH[i].NEWS_TITLE %>"
                        target="_blank">
                        <img src="<%=GetImageUrl(LIST_FLASH[i].IMAGE_CODE) %>" alt="<%=LIST_FLASH[i].NEWS_TITLE %>"
                            width="730px" height="240px" /></a>
                    <% 
                        }
                    %>
                </div>
            </div>
            <!--特色杂烩-->
            <div class="blank cleanFlex">
            </div>
            <div class="box">
                <!--title-->
                <div class="titleLocal">
                    <!--<span class="f_right"><a href="#">[更多]</a></span>-->
                    <h2 class="font14 f_left">
                        <strong>本地</strong>特色</h2>
                    <ul class="titleTabLocal">
                        <asp:Repeater ID="rptLocalType" runat="server" OnItemDataBound="rptLocalType_ItemDataBound">
                            <ItemTemplate>
                                <li id="<%#Eval("TYPE_CODE") %>css" onmouseover="tabType('<%#Eval("TYPE_CODE") %>css','type<%#Eval("TYPE_CODE") %>')"
                                    class='<asp:Literal runat="server" id="typecss"></asp:Literal>'><a href="#">
                                        <%#Eval("TYPE_NAME")%></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <%
                    for (int j = 0; j < modelColortype.Count; j++)
                    {                
                %>
                <div class="cont" style="display: <%if(j==0){Response.Write("block"); }else{Response.Write("none");}%>" id="type<%=modelColortype[j].TYPE_CODE%>">
                    <ul class="imglist">
                        <%  
                            IList<NJL.Model.NJL_LOCAL_COLOR> LIST_2;
                            if (WEBSITE_FOCUS_CITY_CODE != "")
                            {
                                LIST_2 = bll.GetModelList(20, "TYPE_CODE='" + modelColortype[j].TYPE_CODE + "' AND IS_PUBLISH=1 and NJL_SYS_BASE_ID='" + WEBSITE_CODE + "' AND AREA_CODE='" + WEBSITE_FOCUS_CITY_CODE + "' ", "PUBLISH_DATE_TIME desc");
                            }
                            else
                            {
                                LIST_2 = bll.GetModelList(20, "TYPE_CODE='" + modelColortype[j].TYPE_CODE + "' AND IS_PUBLISH=1 and NJL_SYS_BASE_ID='" + WEBSITE_CODE + "' ", "PUBLISH_DATE_TIME desc");
                            }
                            for (int i = 0; i < LIST_2.Count; i++)
                            {
                        %>
                        <li style="width: 155px; height: 133px;"><a target="_blank" href="/<%=GetAreaNamePinYin(LIST_2[i].AREA_CODE) %>/dfts/<%=LIST_2[i].ID %>.html"
                            title="<%=LIST_2[i].NEWS_TITLE %>">
                            <img class="picBor" width="147px" height="105px" alt="<%=LIST_2[i].NEWS_TITLE %>"
                                src="<%=GetImageUrl(LIST_2[i].IMAGE_CODE,"1") %>" />
                        </a>
                            <p>
                                <a target="_blank" href="/<%=GetAreaNamePinYin(LIST_2[i].AREA_CODE) %>/dfts/<%=LIST_2[i].ID %>.html">
                                    <%=LIST_2[i].NEWS_TITLE%>
                                </a>
                            </p>
                        </li>
                        <% 
                            }
                        %>
                    </ul>
                    <div class="cleanFlex">
                    </div>
                </div>
                <%
                    }
                %>
            </div>
        </div>
        <!--右侧-->
        <div class="width_260 f_right">
            <!--大热门-->
            <div class="box hotinfo">
                <div class="titleTab">
                    <ul>
                        <li class="now" id="hotcss" onmousemove="tab('hot','hotcss')"><a href="#">大热门</a></li>
                        <li id="newscss" onmousemove="tab('news','newscss')"><a href="#">地方特色</a></li>
                    </ul>
                </div>
                <div class="cont" id="hot" style="height: 200px;">
                    <p>
                        <% 
                            System.Random random = new Random();
                            for (int i = 0; i < LIST_TAG.Count; i++)
                            {
                                int iRandom = random.Next(0, 9);
                        %>
                        <a target="_blank" href="/SearchLocalColor.aspx?keywords=<%=Server.UrlEncode(LIST_TAG[i].TAG) %>&cc=<%=WEBSITE_FOCUS_CITY_NAME_PINYIN%>"
                            class="tag<%=iRandom.ToString() %>">
                            <%=LIST_TAG[i].TAG%>
                        </a>
                        <%
                            }
                        %>
                    </p>
                    <!--搜索-->
                    <div class="cleanFlex">
                        <asp:TextBox ID="txtKeywords" runat="server" class="inputsearch" Style="width: 175px;"></asp:TextBox>
                        <asp:Button ID="Button1" runat="server" class="searchBtn02" Text="搜索" OnClick="Button1_Click"
                            OnClientClick="return check()" />
                    </div>
                </div>
                <div class="cont" id="news" style="display: none; height: 200px;">
                    <ul class="arrowList">
                        <asp:Repeater runat="server" ID="rptNews">
                            <ItemTemplate>
                                <li><a href="/dfts/dfts/<%#Eval("ID") %>.html" title="<%#Eval("NEWS_TITLE") %>" target="_blank">
                                    <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),18)%></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
            </div>
            <!--本季特色-->
            <div class="cleanFlex blank">
            </div>
            <div class="box">
                <div class="titlearrow">
                    <h2>
                        <strong>本季特色</strong></h2>
                </div>
                <div class="cont">
                    <asp:Repeater ID="rptService" runat="server">
                        <ItemTemplate>
                            <dl class="imglist" style="min-height: 72px; height: 100%">
                                <dt><a target="_blank" title="<%#Eval("SERVICE_NAME") %>" href="/shangpu/<%#Eval("NJL_COMPANY_ID") %>-fuwu-<%#Eval("ID") %>.html">
                                    <img alt="<%#Eval("SERVICE_NAME") %>" src="<%#GetImageUrl(Eval("IMAGE_CODE").ToString(),"2") %>" class="picBor" width="93px" height="69px" /></a></dt>
                                <dd>
                                    <strong><a target="_blank" title="<%#Eval("SERVICE_NAME") %>" href="/shangpu/<%#Eval("NJL_COMPANY_ID") %>-fuwu-<%#Eval("ID") %>.html">
                                        <%#PageValidate.SqlText(Eval("SERVICE_NAME").ToString(),9)%></a></strong></dd>
                                <dd>
                                    <%#PageValidate.SqlText(Eval("SERVICE_INTRO").ToString(),26)%></dd> 
                            </dl>
                        </ItemTemplate>
                    </asp:Repeater>
                </div>
            </div>
            <!--周边农家-->
            <div class="cleanFlex blank">
            </div>
            <div class="box">
                <div class="titlearrow">
                    <h2>
                        <strong>周边特色</strong></h2>
                </div>
                <div class="round">
                    <ul class="imglist imgList04">
                        <asp:Repeater ID="rptOtherColor" runat="server" 
                           >
                            <ItemTemplate>
                                <li style="width: 108px; height: 102px;"><a target="_blank" title="<%#Eval("NEWS_TITLE") %>"
                                    href="/<%#GetAreaNamePinYin(Eval("AREA_CODE").ToString()) %>/dfts/<%#Eval("ID") %>.html">
                                    
                                    <img src="<%#GetImageUrl(Eval("IMAGE_CODE").ToString()) %>" width="107px" height="77px"
                                        alt="<%#Eval("NEWS_TITLE") %>" title="<%#Eval("NEWS_TITLE") %>" />
                                </a>
                                    <p>
                                        <a target="_blank" title="<%#Eval("NEWS_TITLE") %>" href="/<%#GetAreaNamePinYin(Eval("AREA_CODE").ToString()) %>/dfts/<%#Eval("ID") %>.html">
                                            <%#PageValidate.SqlText(Eval("NEWS_TITLE").ToString(),7)%>
                                        </a>
                                    </p>
                                </li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                    <div class="cleanFlex">
                    </div>
                </div>
            </div>
            <!--新品尝鲜-->
            <%--       <div class="cleanFlex blank">
            </div>
            <div class="box">
                <div class="titlearrow">
                    <h2>
                        <strong>新品尝鲜</strong></h2>
                </div>
                <div class="cont taste">
                    <img src="Images/ads_42.jpg" alt="" />
                    <p class="graybg">
                        <span class="f_right">
                            <input type="button" value="我要品尝" class="greenBtn" onmouseover="this.className='greenBtnOver'"
                                onmouseout="this.className='greenBtn'" /></span> <a href="#">米香藕丸</a></p>
                </div>
            </div>--%>
            <!--热门景点-->
            <div class="cleanFlex blank">
            </div>
            <div class="box">
                <div class="titlearrow">
                    <h2>
                        <strong>景点排行</strong></h2>
                </div>
                <div class="cont">
                    <ul class="arrowList">
                        <asp:Repeater ID="rptHot" runat="server">
                            <ItemTemplate>
                                <li><a href="/<%#GetAreaNamePinYin(Eval("AREA_CODE").ToString()) %>/jdms/<%#Eval("ID") %>.html" target="_blank">
                                    <%#PageValidate.SqlText(Eval("ATTRACTION_NAME").ToString(), 18)%></a></li>
                            </ItemTemplate>
                        </asp:Repeater>
                    </ul>
                </div>
                <!--ads-->
                <div class="centeralign">
                   <%@ Register src="Controls/Ad.ascx" tagname="Ad" tagprefix="uc1" %>
                            <uc1:Ad ID="Ad1" runat="server" AdId="7"/>
                </div>
            </div>
        </div>
        <!--热点点评-->
        <div class="blank cleanFlex">
        </div>
        <div class="box">
            <div class="titleLocal">
                <%--<span class="f_right"><a href="/xcgc/">更多</a>--%></span>
                <h2>
                    <strong>热点</strong>点评</h2>
            </div>
            <div  style="">
                <%
                    for (int i = 0; i < LIST_NEWS.Count; i++)
                    {
                %>
                <dl class="imglist" style="float: left; width: 306px;height:60px;margin-left: 10px;border:none;" >
                    <dd>
                        <strong class="greenlink font14"><a href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html" target="_blank">
                            <%if (LIST_NEWS[i].NEWS_TITLE.Length > 20) Response.Write(LIST_NEWS[i].NEWS_TITLE.Substring(0, 20) + "..."); else Response.Write(LIST_NEWS[i].NEWS_TITLE); %></a></strong></dd>
                    <dd>
                        <%if (LIST_NEWS[i].NEWS_SUBJECT_TITLE.Length > 40) Response.Write(LIST_NEWS[i].NEWS_SUBJECT_TITLE.Substring(0, 40) + "..."); else Response.Write(LIST_NEWS[i].NEWS_SUBJECT_TITLE); %>
                        <span class="greenlink"><a target="_blank" href="/wanjia/<%=LIST_NEWS[i].NJL_PERSON_ID %>-youji-<%=LIST_NEWS[i].ID %>.html">
                            详情</a></span>
                    </dd>
                </dl>
                <%
                    }
                %>
                <div class="cleanFlex">
                </div>
            </div>
        </div>
    </div>
    <uc2:WUCFooter ID="WUCFooter1" runat="server" />
    </form>
    <script type="text/javascript">
      function tabType(typecss,typediv) {
         for(var i=1;i<=<%=modelColortype.Count %>;i++)
         {
           document.getElementById(i+"css").className="";
           document.getElementById("type"+i).style.display="none";
         }
         document.getElementById(typecss).className="now";
         document.getElementById(typediv).style.display="block";
        }
    </script>
</body>
</html>
